#define  _CRT_SECURE_NO_WARNINGS


#include<stdio.h>
#include<string.h>

int main()
{
	int n = 0, i = 0, j = 0, arr[100][100] = { 0 }, a[100] = { 0 }, b[100] = { 0 }, flag = 1, c = 0, d = 0, x = 0, y = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++)
	{
		for (j = 0; j < n; j++)
		{
			scanf("%d", &arr[i][j]);
			a[i] += arr[i][j];
		}
	}
	for (i = 0; i < n; i++)
	{
		for (j = 0; j < n; j++)
		{
			b[i] += arr[j][i];
		}
	}
	for (i = 0; i < n; i++)
	{
		if (a[i] % 2 != 0)
			c++;
		else if (b[i] % 2 != 0)
			d++;
	}
	if (c == 0 && d == 0)
		printf("OK\n");
	else if (c == 1 && d == 1)
	{
		for (i = 0; i < n; i++)
		{
			if (a[i] % 2 != 0)
				x = i;
			else if (b[i] % 2 != 0)
				y = i;
		}
		printf("%d %d\n", x + 1, y + 1);
	}
	else
		printf("Corrupt\n");

	return 0;
}